package com.ruoyi.ysg.utils;

import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.ysg.domain.YsgTeacher;

public class YsgUtils {
    public static YsgTeacher getTeacher() {
        return (YsgTeacher) SecurityUtils.getTeacher();
    }

    public static String getTeacherName() {
        return getTeacher().getName();
    }

    public static Long getTeacherId() {
        return getTeacher().getId();
    }

    public static String getTeacherIdStr() {
        return getTeacher().getId().toString();
    }
}
